package com.xuecheng.content.service.impl;

import com.xuecheng.content.model.po.CoursePublishPre;
import com.xuecheng.content.mapper.CoursePublishPreMapper;
import com.xuecheng.content.service.CoursePublishPreService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xuecheng.content.service.CoursePublishService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程发布 服务实现类
 * </p>
 *
 * @author itcast
 */
@Slf4j
@Service
public class CoursePublishPreServiceImpl extends ServiceImpl<CoursePublishPreMapper, CoursePublishPre> implements CoursePublishPreService {

    @Autowired
    CoursePublishPreMapper coursePublishPreMapper;

    @Override
    public CoursePublishPre selectById(Long courseId) {
        return coursePublishPreMapper.selectById(courseId);
    }

    @Override
    public int insert(CoursePublishPre coursePublishPre) {
        return coursePublishPreMapper.insert(coursePublishPre);
    }

    @Override
    public int deleteById(Long courseId) {
        return coursePublishPreMapper.deleteById(courseId);
    }
}
